package com.qf.pojo;

import java.util.Date;

/**
 * @author 高圆圆
 * @date 2023/5/25 11:31
 * 前台用户实体
 */
public class User {
    /**
     * uid  varchar(32) NOT NULL
     * username varchar(20) NULL
     * password varchar(32) NULL
     * name varchar(20) NULL
     * email    varchar(30) NULL
     * telephone    varchar(20) NULL
     * birthday date NULL
     * sex  varchar(10) NULL
     * state    int(11) NULL
     * code varchar(64) NULL
     */
    private String uid ;      //用户uid: 用户注册的使用:使用jdk工具uuid生成的随机字符串
    private String username ; //用户昵称
    private String password ; //前台用户密码
    private String name     ; //真实姓名
    private String email    ; //邮箱
    private String telephone ; // 电话号码
    private Date   birthday  ; //出生日期
    private String sex      ; //性别
    private  int   state    ; //用户的激活状态 默认值0,表示未激活 1,表示激活
    private String code      ;//激活码: 通过使用jdk工具uuid生成的随机字符串

    public User() {
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", telephone='" + telephone + '\'' +
                ", birthday=" + birthday +
                ", sex='" + sex + '\'' +
                ", state=" + state +
                ", code='" + code + '\'' +
                '}';
    }
}
